<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>v-model结合radio类型</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id ="app"> 
    性别：
    <label for="male">
      <input type="radio" id="male" name="sex" value="男" v-model="sex"> 男
    </label>
    <label for="female">
      <!-- 有v-model双向绑定，name静态值可以不用 -->
      <input type="radio" id="female"  value="女" v-model="sex"> 女
    </label>
    <br>
    <h2>您选择的性别是：{{sex}}</h2>
  </div>

  <script>
   var vm = new Vue({
    el: '#app',
    data: {
      message: '你好啊',
      // 默认值
      sex: '男'
    },
    methods: {}
   });
  </script>
</body>

</html>